# -*- coding: utf-8 -*-
# @Time    : 2025/10/13
# @Author  : Syaoran
# @FileName: business_manage.py
# @Desc    :
 
from . import redbook_photo
from . import rokuhentai
from infrastructure.utils.http import responser

class BusinessService(object):
    @classmethod
    def business_redbook_photo(cls, keyword=None, max_notes=1):
        """
        小红书爬图片
        :param keyword: 关键字
        :param max_notes: 条数
        :return:
        """
        data = redbook_photo.xhs_image_crawler(keyword=keyword, max_notes=max_notes)
        return responser.send(10000, data=data)
    
    @classmethod
    def business_rokuhentai(cls, keyword=None, num=1):
        """
        Rokuhentai爬图片
        :param keyword: 关键字
        :param num: 条数
        :return:
        """
        data = rokuhentai.rokuhentai_crawler(keyword=keyword, num=num)
        return responser.send(10000, data=data)